package cn.mooncode.basketballManage.service;

import cn.mooncode.basketballManage.pojo.Playerinfo;
import cn.mooncode.basketballManage.pojo.RespBean;
import cn.mooncode.basketballManage.pojo.RespPageBean;
import cn.mooncode.basketballManage.pojo.Team;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author jwz
 * @since 2021-03-28
 */
public interface ITeamService extends IService<Team> {

    /**
     * 添加教练信息
     * @param cid
     * @param tid
     * @return
     */
    RespBean addCoachInfo(Integer cid, Integer tid);

    /**
     * 添加球员信息
     * @param playerinfoList
     * @param tid
     * @return
     */
    RespBean addPlayerInfo(List<Playerinfo> playerinfoList, Integer tid);

    /**
     * 获取所有球队信息
     * @param currentPage
     * @param size
     * @param team
     * @return
     */
    RespPageBean getAllTeams(Integer currentPage, Integer size, Team team);

    /**
     * 获取当前球队信息
     * @param uid
     * @param rid
     * @return
     */
    Team getCurrentTeam(Integer uid, Integer rid);

    /**
     * 获取本身之外的球队信息
     * @param tid
     * @return
     */
    RespBean getTeam(Integer tid);

    /**
     * 修改球队获胜次数
     * @param tid
     * @return
     */
    RespBean updateWinNum(Integer tid);
}
